import { SearchOutlined } from "@ant-design/icons"
import { Button } from "antd"

import { useLocale } from "@/locales"

const QueryButton = (props: any) => {
	const { formatMessage } = useLocale()
	return (
		<Button type="primary" icon={<SearchOutlined />} {...props}>
			{formatMessage({ id: "label.query" })}
		</Button>
	)
}

export default QueryButton
